/* 首页特有样式 */

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 5rem 0;
    text-align: center;
    margin-bottom: 3rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background-color: var(--success);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
}

/* 主要内容区域 */
.main-content {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.articles {
    flex: 3;
}


.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

/* 文章卡片样式 */
.article-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.dark-mode .article-card {
    background-color: var(--light);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.article-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}



.article-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.dark-mode .article-title {
    color: var(--dark);
}

.article-excerpt {
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.widget-title {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-gray);
}

/* .categories ul {
    list-style: none;
}

.categories li {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
}

.categories li:last-child {
    border-bottom: none;
}

.categories a {
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
}

.dark-mode .categories a {
    color: var(--dark);
}

.categories a:hover {
    color: var(--primary);
} */

.popular-posts .post {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.popular-posts .post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.post-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}

.post-content h4 {
    margin-bottom: 0.5rem;
}

.post-content .date {
    color: var(--gray);
    font-size: 0.9rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud .tag {
    background-color: var(--light-gray);
    padding: 0.5rem 1rem;
}